﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GeekShop
{
    #region Delegates
    public delegate void MarkerSelectionChangedHandler(object sender, MarkerEventArgs e);
    public delegate void MarkerColorChangedHandler(object sender, MarkerEventArgs e);
    public delegate void MarkerDeletedHandler(object sender, MarkerEventArgs e);
    public delegate void MarkerMovedHandler(object sender, MarkerEventArgs e);
    #endregion

    public class MarkerEventArgs : EventArgs
    {
        #region Fields
        private Marker oldMarker;
        private Marker newMarker;
        private int oldIndex;
        private int newIndex;
        #endregion

        #region Properties
        public Marker OldMarker
        {
            get { return oldMarker; }
            set { oldMarker = value; }
        }
        public Marker NewMarker
        {
            get { return newMarker; }
            set { newMarker = value; }
        }
        public int OldIndex
        {
            get { return oldIndex; }
            set { oldIndex = value; }
        }
        public int NewIndex
        {
            get { return newIndex; }
            set { newIndex = value; }
        }
        #endregion

        #region Constructors
        public MarkerEventArgs() { }
        #endregion
    }
}
